<!DOCTYPE html>
<html>
<#include "../head.html">
    <body>
    <table class="mc">
        <tr>
            <td class="mc-l">
                <!--左侧导航---{-->
                <div id="navPanelContainer">
                    <div class="system-logo cd"></div>
                    <!--管理员信息---{-->
                    <#include "../adminInfo.html">
                        <!--管理员信息---}-->
                        <div class="nav-wrap">
                            <#include "leftOfStatisticsSource.html">
                        </div>
                </div>
                <!--左侧导航---}-->
            </td>
            <td class="mc-m">
                <div class="navToggle"></div>
            </td>
            <td class="mc-r">
                <!--顶部导航---{-->
                <#include "../topNav.html">
                    <!--顶部导航---}-->

                    <!--面包屑导航---{-->
                    <#assign moduleName="问答管理">
                        <#include "banner.html">
                            <!--面包屑导航---}-->

                            <!--工具栏--{-->
                            <div id="toolbar" class="clearfix">
                                <div class="toolbor-module search">
                                 	<div class="formTit">起始日期：</div>
                                    <input class="_search-value" name="startTime" id="startTime" value="" onclick="change_picktime()"/>
                                    <div class="formTit">截止日期：</div>
                                    <input class="_search-value" name="endTime" id="endTime" value="" onclick="change_picktime()"/>
                                 	<div class="formTit">渠道号：</div>
                                    <input type="text" name="sftype" id="sftype" class="search-value">
                                    <div class="formTit">子渠道号：</div>
                                    <input type="text" name="sfrom" id="sfrom" class="search-value">
                                     <input type="button" id="reset" value="重置"  class="input-button" onclick="resetSousou();">
                                    <input type="button" value="搜索"  class="input-button" onclick="sousuo();">
                                </div>
                            </div>
                            

                            <!--工具栏--}-->

                            <div id="main" class="clearfix">
                                <form action="" method="post">
                                    <table class="data-list">
                                        <tr class="header">
                                       		<td>日期</td> 
                                            <td>渠道</td>                                            
                                            <td>注册数</td>
                                            <td>安装数</td>
                                            <td>活跃数</td>
                                            <td>充值人数</td>
                                            <td>充值金额</td>
                                            <td>购买人数</td>
                                            <td>购买金额</td>
                                            
                                        </tr>
                                      
                                        <#list list as item>
	                                        
                                            <tr class="s">
                                            	 <td><#if item.time??>${item.time?string("yyyy-MM-dd")}</#if></td> 
                                                <td>${item.sourceFrom!''}</td>
	                                            <td>${item.register!'0'}</td>
	                                            <td>${item.install!'0'}</td>
	                                            <td>${item.active!'0'}</td>
	                                            <td>${item.rechargeNum!'0'}</td>
	                                            <td>${item.rechargeMoney!'0'}</td>
	                                            <td>${item.buyNum!'0'}</td>
	                                            <td>${item.buyMoney!'0'}</td>
                                              
                                            </tr>
                                        </#list>
                                          <tr class="s">
                                        			 <td style="background-color:rgb(200, 200, 255)"></td> 
	                                                <td style="background-color:rgb(200, 200, 255)">合计：</td>
		                                            <td style="background-color:rgb(200, 200, 255)">${registerTotal!0}</td>
		                                            <td style="background-color:rgb(200, 200, 255)">${installTotal!0}</td>
		                                            <td style="background-color:rgb(200, 200, 255)">${activeTotal!0}</td>
		                                            <td style="background-color:rgb(200, 200, 255)">${rechargeNumTotal!0}</td>
		                                            <td style="background-color:rgb(200, 200, 255)">${rechargeMontyTotal!0}</td>
		                                            <td style="background-color:rgb(200, 200, 255)">${buyNumTotal!0}</td>
		                                            <td style="background-color:rgb(200, 200, 255)">${buyMoneyTotal!0}</td>
	                                              
	                                            </tr>
                                    </table>
                                </form>

                                <!--底部工具栏--{-->
                                <div id="bottomToolbar" class="clearfix">
                                    <div class="other-tool">
                                        <dl class="refresh-data">
                                            <dt class="refresh-data-icon"></dt>
                                            <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                                        </dl>
                                    </div>
                                 <!--翻页系统--{-->
                                    <div class="container s_formPage">
                                        <#import "../../common/page.html" as pager>
                                            <@pager.pagination page=page url="${pageUrl}" map=param style="style1" />
                                    </div>
                                    <!--翻页系统--}-->
                                </div>
                                <!--底部工具栏--}-->
                                
                                
                                <script>
                                    var url = 'showStatisticsSource.html?search=true';

                                    function sousuo(){
                                        var sou = "";
                                        var sftype = $("#sftype").val();
                                        var sfrom = $("#sfrom").val();
                                        var startTime = $("#startTime").val();
                                        var endTime = $("#endTime").val();
                                        
                                        if (sftype!=null&&sftype!=""&&sftype!="undefine"&&sftype!="请输入标题关键字"){
                                            sou += "&sftype="+sftype;
                                        }
                                        if (sfrom!=null&&sfrom!=""&&sfrom!="undefine"&&sfrom!="请输入标题关键字"){
                                            sou += "&sfrom="+sfrom;
                                        }
                                        if (startTime!=null&&startTime!=""&&startTime!="undefine"&&startTime!="请输入标题关键字"){
                                            sou += "&startTime="+startTime;
                                        }
                                        if (endTime!=null&&endTime!=""&&endTime!="undefine"&&endTime!="请输入标题关键字"){
                                            sou += "&endTime="+endTime;
                                        }
                                            location.href=url+sou;
                                        
                                    }
                                   
                                    function resetSousou(){
                                    	 $("#sftype").val("");
                                        $("#sfrom").val("");
                                       $("#startTime").val("");
                                        $("#endTime").val("");
                                    }
                                    
                                </script>
                            </div>

            </td>
        </tr>
        <tr>
            <!--尾部--{-->
            <td colspan="3" class="mc-b"><#include "../foot.html"></td>
            <!--尾部--}-->
        </tr>
    </table>

    </body>
</html>
<#include "../jsPage.html">
